//
// Created by 王一飞 on 2021/4/8.
//

#include "head.h"
#include <amqp.h>
#include "rabbitmq_api.h"
#include "thread_pool.h"


int main() {
    struct ConfigServer config;
    init_config_server(&config);
    get_config_server("../config/server.json", &config);
    DBG(INFO "mysqlip: %s", config.myaqlCon.MysqlIp);

    // amqp_connection_state_t conn = NULL;
    // if ((conn = connectServer(config.rabbitCon.RabbitMQIp, config.rabbitCon.RabbitMQPort)) == NULL) {
    //     DBG(ERROR "connect rabbitmq broker failed");
    // }
    // amqp_channel_open(conn, 1);
    threadpool_server *th_sev = threadpool_create(1, 10);
    sleep(1000000);

    return 0;
}
